import { createPinia } from 'pinia';
import piniaPersist from 'pinia-plugin-persistedstate'

import { useMainStore } from './modules/userStore'
import { useThemeColorStore } from './modules/themeColor'

const pinia = createPinia();
pinia.use(piniaPersist)

// 导出默认对象，包含所有 store
export const userStore = useMainStore;
export const themeColorStore = useThemeColorStore;

export default pinia;